package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 优惠券实体类
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
public class Coupons extends Model<Coupons> {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券id
     */
    private String id;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 删除状态 0=正常 1=删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 活动名称
     */
    private String name;
    /**
     * 优惠金额
     */
    @TableField("discount_amount")
    private BigDecimal discountAmount;
    /**
     * 订单最小金额
     */
    @TableField("order_amount")
    private BigDecimal orderAmount;
    /**
     * 优惠券数量
     */
    private Integer number;
    /**
     * 开始使用日期
     */
    @TableField("firs_date")
    private Date firsDate;
    /**
     * 最后使用日期
     */
    @TableField("last_date")
    private Date lastDate;
    /**
     * 优惠卷发行日期
     */
    @TableField("issue_date")
    private Date issueDate;
    /**
     * 优惠券发行结束日期
     */
    @TableField("ending_date")
    private Date endingDate;
    /**
     * 使用范围
     */
    private String path;
    /**
     * 备注
     */
    private String remarks;
    /**
     * 领取数量
     */
    @TableField("get_number")
    private Integer getNumber;
    /**
     * 使用数量
     */
    @TableField("use_number")
    private Integer useNumber;
    /**
     * 商家名称
     */
    @TableField("shop_name")
    private String shopName;
    /**
     * 优惠券类型： 0 = 全场， 1 = 品牌， 2 = 商品， 3 = 分类
     */
    private Integer type;
    /**
     * 发行状态： 0 = 发行， 1 = 停止发行
     */
    @TableField("issue_state")
    private Integer issueState;
    /**
     * 商铺id
     */
    @TableField("store_id")
    private String storeId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Date getFirsDate() {
        return firsDate;
    }

    public void setFirsDate(Date firsDate) {
        this.firsDate = firsDate;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public Date getEndingDate() {
        return endingDate;
    }

    public void setEndingDate(Date endingDate) {
        this.endingDate = endingDate;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getGetNumber() {
        return getNumber;
    }

    public void setGetNumber(Integer getNumber) {
        this.getNumber = getNumber;
    }

    public Integer getUseNumber() {
        return useNumber;
    }

    public void setUseNumber(Integer useNumber) {
        this.useNumber = useNumber;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIssueState() {
        return issueState;
    }

    public void setIssueState(Integer issueState) {
        this.issueState = issueState;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Coupons{" +
        "id=" + id +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", logicDelete=" + logicDelete +
        ", name=" + name +
        ", discountAmount=" + discountAmount +
        ", orderAmount=" + orderAmount +
        ", number=" + number +
        ", firsDate=" + firsDate +
        ", lastDate=" + lastDate +
        ", issueDate=" + issueDate +
        ", endingDate=" + endingDate +
        ", path=" + path +
        ", remarks=" + remarks +
        ", getNumber=" + getNumber +
        ", useNumber=" + useNumber +
        ", shopName=" + shopName +
        ", type=" + type +
        ", issueState=" + issueState +
        ", storeId=" + storeId +
        "}";
    }
}
